
package it.azienda.framework.utilita;

import java.math.BigInteger;

public class ConvertiId {
    
    /** Creates a new instance of convertiId */
    public static Object id(Class class1,Object objId){
     
            if(class1.getName().equals("java.lang.Integer")){
               
                
                return (Object)new Integer((String) objId);
                
            }
            
            if(class1.getName().equals("java.lang.Long")){
                 return (Object)new Long(objId.toString());
            }
        
        return null;
    }
    
}
